package com.zhuiyun.project.api.products.productsort.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuiyun.project.api.products.productsort.entity.ProductSort;
import org.apache.ibatis.annotations.Mapper;
/**
 * @ClassName ProductSortMapper
 * @Description TODO 商品管理持久层
 * @Author ypq
 * @Date 2023/10/27 15:59
 **/
@Mapper
public interface ProductSortMapper extends BaseMapper<ProductSort> {
    /**
    * @Author ypq
    * @Description 根据商品id修改分类id
    * @Date 2023/10/27 15:59
    * @Return int
    * @param productSort
    */

    int editSortIdByProductId(ProductSort productSort);

    /**
    * @Author ypq
    * @Description 新增商品id与分类id关联表
    * @Date 2023/10/31 16:13
    * @Return boolean
    * @param productSort
    */

    boolean addSortId(ProductSort productSort);
}
